﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _04ConverterHexToDec
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Enter hexadecimal value:");
            string nHex = Console.ReadLine();
            int decValue = int.Parse(nHex, System.Globalization.NumberStyles.HexNumber);
            Console.WriteLine("The value in decimal is:" + decValue);
        }
    }
}
